<template>
  <div class="home">
    <Header />
    <CategoryNav />
    <div class="main-content">
      <AdBanner />
      <Sidebar />
    </div>
    <ProductList class="product-list" />
    <Footer />
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import CategoryNav from "@/components/CategoryNav.vue";
import AdBanner from "@/components/AdBanner.vue";
import ProductList from "@/components/ProductList.vue";
import Sidebar from "@/components/Sidebar.vue";
import Footer from "@/components/Footer.vue";

export default {
  name: "HomeView",
  components: {
    Header,
    CategoryNav,
    AdBanner,
    ProductList,
    Sidebar,
    Footer,
  },
};
</script>

<style scoped>
.home {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
}

.product-list {
  width: 80%;
  margin: 0 auto;
}
</style>
